Crate rust_hls_macro_lib
source ·Expand description
A library containing support functions for rust_hls and rust_hls_macro
This basically contains all functions related to parsing the HLS macros from files. These functions are shared between the macro and the buildscript so they both parse in the same way and produce the same error messages.
This crate uses darling::Error as its error type, because that supports bundling errors and span information.
Structs
- Contains information about the HLS main function
Functions
- Verifies that all nested macros are correct.
- Extract rust_hls macro information from the given attributes
- Finds a HLS main function in the given content.
- Check if path looks like a rust_hls macro call
- Modify the content of the HLS macro module so it is valid Rust code
- Parse the macro arguments.
- Try to parse a rust_hls macro from an attribute
- Parse the macro arguments.
- Parse and verify the macro content.
- Removes hls macros from all ItemFns in the list